package com.itwenke.springbootdemo.shirosimple.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itwenke.springbootdemo.shirosimple.entity.BankAccount;
import com.itwenke.springbootdemo.shirosimple.mapper.BankAccountMapper;
import com.itwenke.springbootdemo.shirosimple.service.IBankAccountService;
import org.springframework.stereotype.Service;

@Service
public class BankAccountServiceImpl extends ServiceImpl<BankAccountMapper, BankAccount> implements IBankAccountService {

    @Override
    public void addBankAccount(BankAccount bankAccount) {
        this.save(bankAccount);
    }

    @Override
    public void updateBankAccount(BankAccount bankAccount) {
        this.updateById(bankAccount);
    }
}
